﻿
#r @"C:\Users\Administrator\Desktop\Test\jzTest\GifMaker\bin\Release\GifTools.dll"
#r @"System.Drawing"

open GifTools;;
open System.Drawing;;


//GifMaker.CreatePNG(130,40,"女士姓名",Brushes.White,20,@"C:\女士姓名.png");;
// GifMaker.CreatePNG(130,40,"男士姓名",Brushes.Red,20,@"C:\男士姓名.png");;
//
// 
//GifMaker.CreateGIF(130,40,"女士姓名",Brushes.White,20,@"C:\女士姓名.gif");;
GifMaker.CreateGIF(130,40,"江振",Brushes.White,20,@"C:\男士姓名.gif");;
//
     
let fontFamilly = @"F:\YL\tool\字体\方正卡通简体.TTF";
let fc = new System.Drawing.Text.PrivateFontCollection();
fc.AddFontFile(fontFamilly);
//let f = new Font(fc.Families.[0],(float32)30, FontStyle.Bold, GraphicsUnit.Document)

let f = new Font(fc.Families.[0],(float32)20, FontStyle.Bold)      

GifMaker.CreateTransparentPNG(130,40,5,5,"江振姓名",Brushes.White,30,@"c:\aaa.png")

GifMaker.CreateTransparentGIF(130,40,5,5,"江振姓名",Brushes.White,f,30,@"c:\aaa.gif")

#quit